package com.woniuxy.service.serviceImpl;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.service.ManagerService;
import com.woniuxy.dao.ManagerDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: ideaAdmin
 * TODO:
 * Date: 2022/1/26:11:22
 * Description:
 */
@Service("managerService")
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    ManagerDao managerDao;

    @Override
    public Boolean insertManager(RbacManager rbacManager) {
        return managerDao.insertManager(rbacManager) > 0;
    }

    @Override
    public RbacManager findById(int id) {
        return managerDao.findById(id);
    }

    @Override
    public Boolean updateManager(int id) {
        return managerDao.updateManager(id) > 0;
    }

    @Override
    public Boolean delById(int id) {
        return managerDao.delById(id) > 0;
    }


}
